[유병규-17주차 알고리즘 스터디] #77
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚀 싸피 15반 알고리즘 스터디 17주차 [유병규]
📌 문제 풀이 개요
✅ 문제 해결 여부
💡 풀이 방법
문제 1: 피아의 아틀리에 ~신비한 대회의 연금술사~
문제 난이도
문제 유형
접근 방식 및 풀이
[0,0]
,[1,0]
,[0,1]
,[1,1]
중 한 곳에 넣을 수 있습니다.copy()
가 필요했고 이 과정에서 연산이 많이 수행되었습니다.copy()
할 필요가 없어져 시간을 줄일 수 있습니다.문제 2: 새로운 게임 2
문제 난이도
문제 유형
접근 방식 및 풀이
LinkedList
형식으로 구현하였습니다.Piece
클래스를 생성하였고 아래 필드를 가집니다.x
,y
: 말의 x좌표와 y좌표dir
: 말의 방향up
: 바로 위에 있는 말down
: 바로 아래에 있는 말Cell
클래스를 생성하였고 아래 필드를 가집니다.type
: 칸의 타입(흰색, 빨간색, 파란색)bottom
: 해당 칸과 직접 닿아있는 말문제 3: 군사 이동
문제 난이도
문제 유형
접근 방식 및 풀이
문제 4: 인하니카 공화국
문제 난이도
문제 유형
접근 방식 및 풀이
문제 5: 택배
문제 난이도
문제 유형
접근 방식 및 풀이
village
)을 생성한 후 정렬한 배송 정보를 순회하며 다음 작업을 진행합니다.maxLoad
)을 가져옵니다.maxLoad
'와 '해당 택배의 개수' 중 더 작은 값이 트럭에 적재할 수 있는 값이고, 이는 곧 배달할 수 있는 값이므로 결과 값(result
)에 더해줍니다.village
배열)